package cn.edu.sjtu.se.dslab.service;

import cn.edu.sjtu.se.dslab.actionbean.EditUserActionBean;
import cn.edu.sjtu.se.dslab.actionbean.PageBean;
import cn.edu.sjtu.se.dslab.actionbean.UserActionBean;
import cn.edu.sjtu.se.dslab.exception.DBException;
import cn.edu.sjtu.se.dslab.pojo.User;


/**
 * SysUserService<BR>
 * 系统用户管理业务处理接口类
 * 
 * @author 孙科
 * @param <userActionBean>
 * @update
 */
public interface IUserService<userActionBean>{
	/**
	 * 新增
	 * @param addSysUserActionBean
	 * @throws DBException
	 */
	void add(EditUserActionBean addUserActionBean) throws DBException;	
	/**
	 * 删除
	 * @param UserActionBean
	 * @throws DBException
	 */
	//void delete(SysUserActionBean sysUserManaActionBean) throws DBException;
	

	/**
	 * 查询系统用户信息
	 * @return List<systemUser>
	 * @throws DBException
	 */
	@SuppressWarnings("unchecked")
	public PageBean getUserList(UserActionBean userManaActionBean) throws DBException;
	/**
	 * 检出是否有改用户登录名的用户
	 * @param bean
	 * @return
	 * @throws DBException
	 */
	public boolean checkExist(EditUserActionBean bean) throws DBException; 
	public String register(User user);
	public void delete(User user);
	public User findUserById(long id) throws DBException;
}
